package com.animal.service.impl;

import com.animal.entity.pojo.R;
import com.animal.entity.pojo.Reply;
import com.animal.mapper.ReplyMapper;
import com.animal.service.ReplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReplyServiceImpl implements ReplyService {

    @Autowired
    private ReplyMapper replyMapper;

    @Override
    public Boolean publish(Reply reply) {
        return replyMapper.publish(reply);

    }

    @Override
    public int delete(Integer id) {
        return replyMapper.delete(id);
    }

    @Override
    public int deleteByIds(List<Integer> ids) {
        return replyMapper.deleteByIds(ids);
    }
}
